package com.gome.han.bigdata.spark.core.wordcount;

/**
 * @author Hanpeng
 * @date 2021/1/3 15:59
 * @description:
 */
object WordCountDataset {
  def main(args: Array[String]): Unit = {
    /*import spark.implicits._;
    val logFile = "YOUR_SPARK_HOME/README.md" // Should be some file on your system
    val spark = {
      SparkSession.builder.appName("Simple Application").getOrCreate()
    }
    val logData = spark.read.textFile(logFile).cache()
    val numAs = logData.filter(line => line.contains("a")).count()
    val numBs = logData.filter(line => line.contains("b")).count()
    println(s"Lines with a: $numAs, Lines with b: $numBs")
    spark.stop()*/
  }
}
